home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5767 < prev    next >
Encoding:
Text File  |  1996-08-05  |  876 b   |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: metropolis.nl!ppp0-131
  3. From: mindmelt@metropolis.nl (mindmelt)
  4. Subject: far pointer question
  5. X-Nntp-Posting-Host: ppp0-131.metropolis.nl
  6. Message-ID: <DMD8wB.4IF@news.metropolis.nl>
  7. Sender: news@news.metropolis.nl (usenet)
  8. Organization: mindmelt
  9. X-Newsreader: News Xpress Version 1.0 Beta #3
  10. Date: Tue, 6 Feb 1996 20:02:01 GMT
  11.  
  12.  
  13. Hi,
  14.  
  15. I'm coding a program that needs a pointer to the text video ram (b800:0000). 
  16. The question is: how do I make a global, constant far variable that points to 
  17. this segment address? I use Watcom C/C++, my program is in C++ and I use a 
  18. small memory model. The weird thing is that when I tried it in C it worked 
  19. allright: char far *ptr = MK_FP( 0xb800, 0x0000 ), but then when I wrote it in 
  20. C++ it gave a compile-time error.
  21.  
  22. Could anyone help me out?
  23.  
  24. Please reply directly to my email address.
  25.  
  26. Thanks!
  27.  
  28. Manuel
  29.